package main

import (
	"fmt"
	"time"
)

func main()  {

	// Unix
	fmt.Println("Unix : ", time.Now().Unix())

	// UnixNano
	fmt.Println("UnixNano : ", time.Now().UnixNano())

	// String
	fmt.Println("String : ", time.Now().String())

	// UTC
	fmt.Println("UTC : ", time.Now().UTC())

	// Local
	fmt.Println("Local : ", time.Now().Local())

	// LoadLocation
	location, _ := time.LoadLocation("Asia/Shanghai")
	fmt.Println("LoadLocation : ", time.Now().In(location))

	// Add
	fmt.Println("Add : ", time.Now().Add(1))

	// AddDate
	fmt.Println("AddDate : ", time.Now().AddDate(0,0,3))

	// Format
	fmt.Println("Format : ", time.Now().Format("2006-01-02 15:04:05"))
}
